﻿<%@ Page Title="Můj profil" Language="C#" MasterPageFile="~/Pages/Site.Master" AutoEventWireup="true" CodeBehind="Profile.aspx.cs" Inherits="Altairis.FluffyCloud.WebCore.Pages.My.Profile" %>
<asp:Content ContentPlaceHolderID="Main" runat="server">
    <h1>Můj profil</h1>
    <asp:Panel runat="server" ID="PanelChangesSaved" data-dialog-message="FluffyCloud" Visible="false">
        <p>Změny ve vašem profilu byly úspěšně uloženy.</p>
    </asp:Panel>
    <div class="tabs">
        <ul>
            <li><a href="#tab">Hodnoty</a></li>
            <li>
                <asp:HyperLink runat="server" NavigateUrl="<%$ RouteUrl: RouteName=MyProfileAcl %>" Text="Oprávnění" data-follow-link="true" />
            </li>
        </ul>
        <div id="tab">
            <asp:FormView ID="FormView" runat="server" DefaultMode="Edit" ItemType="Altairis.FluffyCloud.Data.User" DataKeyNames="UserName" SelectMethod="FormView_GetItem" UpdateMethod="FormView_UpdateItem">
                <EditItemTemplate>
                    <div class="form">
                        <asp:DynamicEntity runat="server" Mode="Edit" />
                        <asp:ValidationSummary runat="server" />
                        <div>
                            <asp:Button Text="Uložit" runat="server" CommandName="Update" />
                        </div>
                    </div>
                </EditItemTemplate>
            </asp:FormView>
        </div>
    </div>
</asp:Content>